home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / PowerPlant / LFolderWatcher / LFolderWatcher.h < prev    next >
Encoding:
Text File  |  1995-08-27  |  1.5 KB  |  49 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    LFolderWatcher.h                © 1995, Éric Forget. All rights reserved.
  3. // ===========================================================================
  4. //    
  5. //    ************************************************************************
  6. //    *                                                                      *
  7. //    *    Before using this code you should read the "License Agreement"     *
  8. //    *    document and agree with it.                                        *
  9. //    *                                                                      *
  10. //    ************************************************************************
  11. //
  12. //    Instruction and usage notes are in the LFolderWatcher.cp file.
  13. //
  14. // ---------------------------------------------------------------------------
  15.  
  16.  
  17. #pragma once
  18.  
  19.  
  20. #include    <LSortedList.h>
  21.  
  22.  
  23. // ---------------------------------------------------------------------------
  24. //        • Class LFolderWatcher
  25. // ---------------------------------------------------------------------------
  26.  
  27. class LFolderWatcher : public LSortedList {
  28.  
  29. public:
  30.                             LFolderWatcher(
  31.                                     Int32    inDirID,
  32.                                     Int16    inVRefNum,
  33.                                     OSType    inFileType = fileType_Default,
  34.                                     OSType    inFileCreator = fileType_Default);
  35.     virtual                    ~LFolderWatcher();
  36.     
  37.     virtual Boolean            Update();
  38.     
  39. protected:
  40.     Int32                    mDirID;
  41.     Int16                    mVRefNum;
  42.     OSType                    mFileType;
  43.     OSType                    mFileCreator;
  44.     Int32                    mLastModificationDate;
  45.     
  46.     virtual void            Reset();
  47.     
  48. };
  49.